{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %}Flasky{% endblock %}

{% block page_content %}

{% if current_user.is_authenticated %}
<div>
    <div class="text-primary" style="font-size: 20px;font-weight: bold;padding-bottom: 15px;padding-top: 20px;">
            测试计划名称：
        <span style="font-size: 18px;color:#151515;font-weight: 300;padding-bottom: 15px;padding-top: 20px;">
            {{ plan_name}}
        </span>
    </div>
    <div class="text-primary" style="color: cadetblue;font-size: 20px;font-weight: bold;padding-bottom: 15px;padding-top: 20px;">
            测试计划描述：
        <span style="font-size: 18px;color:#151515;font-weight: 300;padding-bottom: 15px;padding-top: 20px;">
            {{ plan_info}}
        </span>
    </div>
</div>
<div style="float: left">
    <form method="post" action="">
        {{ form.hidden_tag() }}
        <div class="row" style="padding: 6px 12px 30px;">
            <div class="col-lg-2" style="width: 300px">
                {{ form.host(class="form-control",placeholder="Host") }}
            </div>
            <div class="col-lg-2" style="width: 300px">
                {{ form.url(class="form-control",placeholder="Url") }}
            </div>
            <div class="col-lg-2" style="width: 300px">
                {{ form.method(class="form-control",placeholder="接口类型") }}
            </div>
            <div class="col-lg-2" style="width: 300px">
                {{ form.parameter(class="form-control",placeholder="接口参数") }}
            </div>
            <br/>
             <div class="col-lg-2" style="width: 300px">
                {{ form.expectation(class="form-control",placeholder="预期结果") }}
            </div>
            <div class="col-lg-2" style="width: 300px">
                {{ form.depiction(class="form-control",placeholder="接口描述") }}
            </div>
            <div class="col-lg-2">
                {{ form.submit(class_="btn btn-primary") }}
            </div>
        </div>
    </form>
</div>
{% include 'plan/case_list.html' %}
{% endif %}
{% endblock %}